package com.zzyl.dto;

import com.aliyun.iot20180120.models.RegisterDeviceRequest;
import com.aliyun.tea.NameInMap;
import com.zzyl.base.BaseDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DeviceDto extends BaseDto {
	//----------------Iot设备调用接口请求参数，https://help.aliyun.com/zh/iot/developer-reference/api-4e1b88?spm=a2c4g.11186623.0.0.5a444df9OLZ3Zh
	private RegisterDeviceRequest registerDeviceRequest;
	
	//----------------------------------项目业务相关设备信息-----------------------------------
	//全局唯一的设备ID
	@NameInMap("IotId")
	private String iotId;
	//设备名称
	private String deviceName;
	//设备备注名称
	@NameInMap("Nickname")
	private String nickname;
	//所属产品Key
	@NameInMap("ProductKey")
	private String productKey;
	//所属产品名称
	private String productName;
	
	//位置类型 0 老人 1位置
	private Integer locationType;
	//物理位置类型 -1老人 0楼层 1房间 2床位
	private Integer physicalLocationType;
	//位置名称回显字段
	private String deviceDescription;
	//绑定位置
	private Long bindingLocation;
	
}